package com.qiyadeng.thread;


public class ParentTreeeNode implements Runnable {

	private TreeNode childNode;
	private TreeNode parentNode;
	
	public ParentTreeeNode(){}
	
	public ParentTreeeNode(TreeNode childNode,TreeNode pareNode){
		this.childNode = childNode;
		this.parentNode = pareNode;
	}
	
	@Override
	public void run() {
		childNode.setParent(parentNode);
	}

}
